<%-- 
    Document   : login
    Created on : 2010-8-12, 23:18:41
    Author     : kinglian
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html lang="true">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><bean:message key="login.page.title"/></title>
        <html:base/>
    </head>
    <body style="background-color:inherit">

        <logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application">
            <div  style="color: red">
                ERROR:  Application resources not loaded -- check servlet container
                logs for error messages.
            </div>
        </logic:notPresent>

        <h1 align="center"><bean:message key="login.page.heading"/></h1>
        <html:errors/>


        <html:form action="/login.do" focus="name">

            <table border="1" align="center">
                <tbody>
                    <tr>
                        <td><bean:message key="login.user.name"/></td>
                        <td><html:text property="name" size="16" maxlength="16"/></td>
                    </tr>
                    <tr>
                        <td><bean:message key="login.user.password"/></td>
                        <td><html:password property="password" size="16" maxlength="16"/></td>
                    </tr>
                    <tr>
                        <td><html:reset/></td>
                        <td><html:submit property="login" value="Login"/></td>
                    </tr>
                </tbody>
            </table>

        </html:form>

    </body>
</html:html>
